using IQIGame.Onigao.Framework;
using System;

namespace IQIGame.Onigao.GamePlay
{
    /// <summary>
    /// 实体Driver环境，存一些全局数据
    /// </summary>
    public class EntityDriverEnvironment : Singleton<EntityDriverEnvironment>
    {
        private EntityDriverEnvironment() { }


        // 默认的材质色阶
        public Action<IMaterialChangeable> defaultMatColorValueAction;

        /// <summary>
        /// 当前环境的默认地板
        /// </summary>
        public int defaultGroundId { get; set; }

        public void Clear()
        {
            defaultMatColorValueAction = null;
            defaultGroundId = 0;
        }
    }
}
